package com.kenans.entity;

import java.util.List;

/**
 * @author KENANS
 * @date 2020-8-26 11:03
 * @Version 1.0
 */
public class City {
    private Integer id;
    private String name;
    private Integer pid;

    private List<Car> cars;

    public City() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public List<Car> getCars() {
        return cars;
    }

    public void setCars(List<Car> cars) {
        this.cars = cars;
    }

    @Override
    public String toString() {
        return "City{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pid=" + pid +
                ", cars=" + cars +
                '}';
    }
}
